package restful;


public class PageProtocol extends RestfulProtocol {
	public PageProtocol() {
		topic("Site");

		resource("Page");
		{
			POST("/pages");
			GET("/pages/{name}");

			POST("/pages/{year}/{month}/{day}/{name}");
			GET("/pages/{year}/{month}/{day}/{name}");
			PUT("/pages/{year}/{month}/{day}/{name}");
			DELETE("/pages/{year}/{month}/{day}/{name}");
		}

		topic("Protocol");

		resource("Protocol");
		{
			GET("/protocol");
		}

		resource("Resource");
		{
			GET("/protocol/resources/{name}");
		}

		resource("Method");
		{
			GET("/protocol/methods/{name}");
		}

	}

}
